package itsm.isperp.module.entity.app;

import itsm.isperp.framework.data.mybatis.domain.AbstractTreeNode;
import itsm.isperp.framework.domain.IMenu;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 系统菜单实体模型
 * 
 * @author lizx
 * @date 2013-1-12
 * @version V1.0
 */
@Table(name = "app_menu")
public class AppMenu extends AbstractTreeNode implements IMenu {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column
	private String iconcls;

	@Column
	private String url;

	@Column
	private String countUrl;

	@Column
	private int countInterval;

	@Column
	String openType;

	@Column
	boolean useForWebos;

	@Column
	String iconImage;

	public String getIconImage() {
		return iconImage;
	}

	public void setIconImage(String iconImage) {
		this.iconImage = iconImage;
	}

	public String getIconcls() {
		return iconcls;
	}

	public void setIconcls(String iconcls) {
		this.iconcls = iconcls;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String getAuthority() {
		return this.url;
	}

	public String getOpenType() {
		return openType;
	}

	public void setOpenType(String openType) {
		this.openType = openType;
	}

	public boolean isUseForWebos() {
		return useForWebos;
	}

	public void setUseForWebos(boolean useForWebos) {
		this.useForWebos = useForWebos;
	}

	public String getCountUrl() {
		return countUrl;
	}

	public void setCountUrl(String countUrl) {
		this.countUrl = countUrl;
	}

	public int getCountInterval() {
		return countInterval;
	}

	public void setCountInterval(int countInterval) {
		this.countInterval = countInterval;
	}

}
